#ifndef DEVICE_H
#define DEVICE_H

#include <QObject>
#include <QXmlStreamWriter>
#include <QXmlStreamReader>

class Device : public QObject
{
    Q_OBJECT

public:
    explicit Device(QObject *parent = nullptr);

    QString strID() const;
    void setStrID(const QString &newStrID);

    virtual void writeXML(QXmlStreamWriter& writer) = 0;
    virtual void readFromXML(QXmlStreamReader& reader) = 0;

protected:
    QString         m_strID;

};

#endif // DEVICE_H
